/* Sspai Web Theme A theme to [sspai](ssp.ai) default theme. Developed by Codegass(wchweichenhao@gmial.com) & Yves(yves@sspai.com) Download Cuto on the App Store and Google Play! */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('/res/font/AlibabaPuHuiTi.woff2') format('woff2');
  }

@font-face {
    font-family: 'SourceHanSerifSC';
    src: url('/res/font/SourceHanSerifSC.otf') format('opentype');
  
}
body {
	font-size: 18px;
	background: #000000;
	margin: 0px;
	padding: 0px;
	font-family: "AlibabaPuHuiTi";
	line-height: 1.6;
	color: #ffffff;
}
.content h1 {
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
	padding-top: 16px;
	margin-bottom: 12px;
	color: #ffffff;
	letter-spacing: -0.5px;
	text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.content h2, .content h3, .content h4, .content h5, .content h6 {
	line-height: 1.4em;
	margin-top: 2.2em;
	margin-bottom: 4px;;

}
.content h3{
    display: inline;
    background: linear-gradient(180deg, transparent 80%, #ff7e79 80%);

}
.content h2 {
	font-size: 1.3em;
	margin: 40px 10px 20px 0;
	padding-left: 12px;
	border-left: 6px solid #ff7e79;
	font-weight: 700;
	line-height: 1.4;
	transition: all 0.2s ease;
}
.content h3 {
	font-weight: 700;
	font-size: 1.2em;
	line-height: 1.4;
	margin: 10px 0 5px;
	padding-top: 10px;
}
.content h4 {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.1em;
	line-height: 1.4;
	margin: 10px 0 5px;
	padding-top: 10px;
}
.content h5, .content h6 {
	font-size: .9em;
}
.content h5 {
	font-weight: bold;
	text-transform: uppercase;
}
.content h6 {
	font-weight: normal;
}
.content img {
	border-radius: 8px;
	display: block;
	height: auto;
	margin: 25px auto;
    max-height: 600px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.content dl, .content ol, .content ul {
	margin-top: 12px;
	margin-bottom: 20px;
	padding-left: 5%;
	line-height: 1.8;
}

/* 定义自定义字体 */

.content p {
	margin: 0 0 20px;
	line-height: 1.8;
    font-weight: 500;
    letter-spacing: 0.5px; 
    font-family: 'SourceHanSerifSC';
}
.content a {
	color: #ff6b66;
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
}
.content a:hover {
	color: #ff8a86;
	text-decoration: underline;
	text-shadow: 0 0 2px rgba(255, 107, 102, 0.4);
}
.content a:focus {
	outline-offset: -2px;
}
.content blockquote {
	font-size: 1em;
	font-style: italic;
	padding: 25px 35px;
	margin: 20px 0;
	position: relative;
	line-height: 1.8;
	text-indent: 0;
	border: none;
	background-color: #200;
	border-radius: 5px;
	border-left: 3px solid #444;
}
.content blockquote:before {
	content: "";
	left: 12px;
	top: 0;
	color: #444;
	font-size: 4em;
	font-family: Arial, serif;
	line-height: 1em;
	font-weight: 700;
	position: absolute;
}
.content blockquote:after {
	content: "";
	right: 12px;
	bottom: -26px;
	color: #444;
	font-size: 4em;
	font-family: Arial, serif;
	line-height: 1em;
	font-weight: 700;
	position: absolute;
	bottom: -31px;
}
.content strong, .content dfn {
	font-weight: 700;
	color: #f0f0f0;
}
.content em, .content dfn {
	font-style: italic;
	font-weight: 400;
}
.content del {
	text-decoration: line-through;
}



.content code {
	color: #ff7b9d;
	background-color: #422;
	border-radius: 4px;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
	padding: 3px 6px;
	font-size: 90%;
	white-space: nowrap;
}


.content p>code {
	color: #ff7b9d;
	background-color: #422;
	font-size: .95em;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}
.content figure {
	margin: 1em 0;
}
.content figcaption {
	font-size: 0.75em;
	padding: 0.5em 2em;
	margin-bottom: 2em;
}
.content figure img {
	margin-bottom: 0px;
}
.content hr {
	margin: 35px auto;
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
	width: 80%;
}
.content video{
    width: 100%;
    height: auto;

}

/* 表格包装器 - 光影增强 */
.content .table-wrapper {
	overflow-x: auto;
	margin: 30px 0;
	border-radius: 16px;
	box-shadow: 
		0 8px 32px rgba(0, 0, 0, 0.5),
		0 2px 8px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	max-width: 100%;
	background: linear-gradient(145deg, #0a0a0a, #111);
	padding: 2px;
}

.content .table-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	border-radius: 16px 16px 0 0;
}

.content table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
	font-size: 14px;
	background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
	box-shadow: 
		0 8px 32px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		inset 0 -1px 0 rgba(0, 0, 0, 0.2);
	position: relative;
}



.content table th {
	background: linear-gradient(180deg, #323232 0%, #282828 100%);
	color: #ffffff;
	font-weight: 600;
	text-align: left;
	padding: 16px 20px;
	border-bottom: 1px solid #3a3a3a;
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	min-width: 80px;
	outline: none;
	box-shadow: 
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		inset 0 -1px 0 rgba(0, 0, 0, 0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	letter-spacing: 0.3px;
}

.content table th::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.content table th::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.content table th:focus,
.content table td:focus {
	outline: 2px solid #ff6b66;
	outline-offset: -2px;
}

.content table th.sortable:focus {
	outline: 2px solid #ff6b66;
	outline-offset: -2px;
	background-color: #3a3a3a;
}



.content table td {
	padding: 14px 18px;
	border-bottom: 1px solid #2a2a2a;
	color: #e0e0e0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: pre-wrap;
	word-break: break-word;
	min-width: 80px;
	max-width: 400px;
	overflow-wrap: break-word;
	outline: none;
	position: relative;
	background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.01) 100%);
	border-right: 1px solid rgba(255, 255, 255, 0.02);
}

.content table td::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.content table tr:hover td::before {
	opacity: 1;
}

.content table td:last-child {
	border-right: none;
}

/* 数字列右对齐 */
.content table td[data-type="number"],
.content table td[data-type="currency"],
.content table td[data-type="percentage"] {
	text-align: right;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* 日期列居中对齐 */
.content table td[data-type="date"] {
	text-align: center;
}

/* 布尔值样式 */
.content table td[data-type="boolean"][data-value="true"] {
	color: #4ade80;
	font-weight: 600;
}

.content table td[data-type="boolean"][data-value="false"] {
	color: #f87171;
	font-weight: 600;
}

.content table tr:nth-child(even) {
	background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.content table tr:nth-child(odd) {
	background: linear-gradient(135deg, #1e1e1e 0%, #191919 100%);
}

.content table tr:hover {
	background: linear-gradient(135deg, #2c2c2c 0%, #252525 100%);
	transform: scale(1.005);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	z-index: 1;
	position: relative;
}

.content table tr {
	transition: all 0.3s ease;
}

.content table tr:hover {
	background-color: #2c2c2c;
	transform: scale(1.01);
}

/* 表格排序图标 - 从blog.css迁移 */
.content table th.sortable {
	cursor: pointer;
	padding-right: 30px;
	position: relative;
}

.content table th.sortable::before {
	content: '\2191';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.3;
	transition: opacity 0.3s;
	font-size: 12px;
}

.content table th.sortable::after {
	content: '\2193';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.3;
	transition: opacity 0.3s;
	font-size: 12px;
	margin-top: 8px;
}

.content table th.sortable.asc::before {
	opacity: 1;
}

.content table th.sortable.desc::after {
	opacity: 1;
}

/* 可访问性改进 */
.content table caption {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* 屏幕阅读器可见的表格描述 */
.content .table-description {
	display: none;
}

.content table:focus-within {
	outline: 2px solid #ff6b66;
	outline-offset: 2px;
}

/* 键盘导航指示器 */
.content table th[tabindex]:hover,
.content table th[tabindex]:focus {
	background-color: #3a3a3a;
	cursor: pointer;
}

/* 跳过表格链接 */
.content .skip-table {
	position: absolute;
	top: -40px;
	left: 6px;
	background: #ff6b66;
	color: #000;
	padding: 8px;
	border-radius: 4px;
	text-decoration: none;
	z-index: 100;
	transition: top 0.3s;
}

.content .skip-table:focus {
	top: 6px;
}

/* 表格响应式设计 - 优化移动端显示 */
@media screen and (max-width: 768px) {
	.content .table-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.content table {
		min-width: 600px;
		font-size: 13px;
	}

	.content table th,
	.content table td {
		padding: 10px 12px;
		min-width: 80px;
		max-width: 200px;
	}

	.content table th {
		position: sticky;
		top: 0;
		z-index: 10;
	}
}

/* 代码块样式 - 从blog.css迁移 */
.content pre {
	position: relative;
	margin: 20px 0;
	overflow: hidden;
	background: #1a1a1a;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #333;
}

.content code {
	color: #ff7b9d;
	background-color: #422;
	border-radius: 4px;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
	padding: 3px 6px;
	font-size: 90%;
	white-space: nowrap;
}

.content pre code {
	background: transparent;
	padding: 0;
	border-radius: 0;
	white-space: pre;
	color: #d0d0d0;
}

/* 复制按钮样式 */
.copy-code-button {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0,0,0 ,0);

	color: #eee;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.3s ease;
	z-index: 10;
	opacity: 0.8;
}

.copy-code-button:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.copy-code-button:active {
	transform: translateY(0);
}

/* 代码语言标签样式 */
.code-language-label {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #aaa;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-family: 'SFMono-Regular', Consolas, monospace;
	z-index: 10;
}

/* 文件链接样式 - 从blog.css迁移 */
.content files {
	text-decoration-line: underline;
	cursor: pointer;
	color: #ff6b66;
	transition: color 0.2s ease;
}

.content files:hover {
	color: #ff8a86;
	text-decoration: underline;
}

/* iframe样式 - 从blog.css迁移 */
.content iframe {
	width: 100%;
	aspect-ratio: 16/10;
	align-items: center;
	padding: 2%;
	border-radius: 8px;
	border: 1px solid #333;
	margin: 20px 0;
}

.content ol p, .content ul p {
	margin-bottom: 0px;
}
.content li {
	margin-top: 5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: 'SourceHanSerifSC';
    font-size: 0.99em;
}
.content ol#footnotes {
	font-size: 0.95em;
	padding-top: 1em;
	margin-top: 1em;
	margin-left: 0;
	border-top: 1px solid #422;
	counter-reset: footer-counter;
	list-style: none;
	padding-left: 5%;
	margin: 20px 0;
}
.content ol#footnotes li {
	margin-bottom: 10px;
	margin-left: 16px;
	font-weight: 400;
	line-height: 2;
	list-style-type: none;
}
.content ol#footnotes li:before {
	content: counter(footer-counter) ". ";
	counter-increment: footer-counter;
	font-weight: 800;
	font-size: .95em;
}
@keyframes highfade {
	0% {
		background-color: none;
	}
	20% {
		background-color: #665e00;
	}
	100% {
		background-color: none;
	}
}
@-webkit-keyframes highfade {
	0% {
		background-color: none;
	}
	20% {
		background-color: #665e00;
	}
	100% {
		background-color: none;
	}
}
.content a:target, .content ol#footnotes li:target, .content sup a:target {
	animation-name: highfade;
	animation-duration: 2s;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
	-webkit-animation-name: highfade;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: 1;
	-webkit-animation-timing-function: ease-in-out;
}
.content a:target {
	border: 0;
	outline: 0;
}
